//
//  SISSTransferOwnershipAppointmentViewModel.m
//  SISSAPP
//
//  Created by 袁应荣 on 2018/10/26.
//  Copyright © 2018年 优房网. All rights reserved.
//

#import "SISSTransferOwnershipAppointmentViewModel.h"

@implementation SISSTransferOwnershipAppointmentViewModel


- (NSString *)plistName {
    return @"TransferOwnershipAppointmentInfoArray";
}

- (void)setArrWith:(NSString *)str {
    self.dataArr[0][0].rightStr = @"{区域}";
    self.dataArr[0][1].rightStr = @"{小区名}{楼栋}}{房号}";
    self.dataArr[0][2].rightStr = @"{权属证明类型}";
    self.dataArr[0][3].rightStr = @"{权属证明编号}";
}

- (UIView *)getViewHeaderInSection:(NSInteger)section {
    
    SISSBaseView *headerView = [[SISSBaseView alloc] init];
    headerView.backgroundColor = [UIColor groupTableViewBackgroundColor];
    UILabel *label = [[UILabel alloc] init];
    label.textColor = COLOR(0x334A60);
    label.font = [UIFont systemFontOfSize:16];
    [headerView addSubview:label];
    
    CGFloat margin = 8.0;
    [label mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(headerView).offset(2 * margin);
        make.centerY.equalTo(headerView);
    }];
    
    NSArray *headerTextArr = @[@"", @""];
    
    label.text = headerTextArr[section];
    
    return headerView;
}


- (CGFloat)getHeightForHeaderInSection:(NSInteger)section {
    if (section == 0) {
        return 0.001;
    }
    return 16;
}


@end
